package com.kbplus.demo.data.permission.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author kbplus
 * @version v1.0
 * @date 2022-05-17 10:46:30
 */
public interface CommonMapper {

    @Select(value = "select count(1) from information_schema.columns where table_name = #{tableName} and column_name = #{filedName}")
    int getFieldExists(@Param("tableName")String tableName,@Param("filedName")String filedName);
}
